import java.util.Scanner;
//现有一个Data类，内部定义了属性x和y，在main方法中实例化了Data类，并计算了data对象中x和y的和。
// 但是，Data类的定义存在错误，请你将这些错误修正过来，使得main方法中的求和逻辑可以正常执行
/*public class Main {

    public static void main(String[] args) {
        //打印
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            System.out.print("请输入两个数：");
            int x = scanner.nextInt();//输入
            int y = scanner.nextInt();//输入
            Data data = new Data(x,y);//实例化一个对象data，调用构造方法
            System.out.println(data.getX() + data.getY());//通过对象调用Data方法
        }
    }

}*/
//Data类
/*
class Data {
        //成员变量
    private int x;
    private int y;
    //成员方法
    public Data(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

}*/
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();//输入x
            int y = scanner.nextInt();//输入y
            int z = scanner.nextInt();//输入z

            Sub sub = new Sub(x, y, z);//实例化一个sub，并调用构造方法
            System.out.println(sub.calculate());
        }
    }
}
class Base {
    private int x;
    private int y;
    //得到x和y
    public Base(int x, int y) {
        this.x = x;//2
        this.y = y;//2
    }
    public int getX() {
        return x;
    }
    public int getY() {
        return y;
    }
}
class Sub extends Base {
    private int z;
    //sub接收了数值，x = 2，y = 2，z = 2
    public Sub(int x, int y, int z) {
        //write your code here
        super(x, y);//构建父类构造方法
        this.z = z;//把值给z
    }
    public int getZ() {
        return z;
    }
    public int calculate() {
        return super.getX() * super.getY() * this.getZ();
    }

}
